from .db.index import create_db_and_tables
from contextlib import asynccontextmanager
from fastapi import FastAPI
from .domain.words.router.index import router as words_router

@asynccontextmanager
async def lifespan(app: FastAPI):
    create_db_and_tables()
    yield

app = FastAPI(lifespan=lifespan)
app.include_router(words_router)

